package com.shhm.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;
import com.shhm.common.dto.request.admin.SysUserRoleReq;
import com.shhm.common.dto.response.admin.SysUserRoleVO;
import com.shhm.common.entity.admin.SysUserRole;
import com.shhm.common.entity.system.UserRole;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @author JackZ
 * @version 1.0
 * @description: TODO
 * @date 2025/8/14 下午4:49
 */
@Mapper
public interface UserRoleMapper extends BaseMapper<SysUserRole>
{
    PageDTO<SysUserRoleVO> pageList(IPage<SysUserRoleVO> page);

    PageDTO<SysUserRoleVO> pageSearchList(IPage<SysUserRoleVO> page,@Param("params") SysUserRoleVO queryDto);

    void resetUserRole(@Param("roleIds") List<Object> roleIds);
}
